<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../../../resources/inc/head.jsp" %>
</head>
<body>
<style>
    .layui-inline {
        width: 200px;
    }
</style>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8 layui-col-md-offset2">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class=content>

                            <h1 class=content_title> ${contentNotification.name}</h1>

                            <%-- <h1 class=content_title> ${contentNotification.name}</h1>--%>
                            <br/>
                            <div class=content_body>
                                <!--style-->
                                <p id="date"></p>
                                <br/>
                                <div id=page_top class=page_top>
                                    <article>${contentNotification.content}</article>
                                </div>
                                <br/>
                            </div>
                        </div>
                        <div class="layui-col-md4 layui-col-md-offset11">
                            <button class="layui-btn" lay-submit="" lay-filter="demo1">返回</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

<%@include file="../../../resources/inc/footer.jsp" %>
<script>
    layui.config({
        base: '<%=basePath%>resources/lib/layuiAdmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['laydate', 'index', 'table'], function () {
        var $ = layui.$
            , form = layui.form
            , table = layui.table,
            laydate = layui.laydate;

        var date = new Date();
        date.setTime('${contentNotification.gmtModified}');
        $('#date').html("发布时间:" + date.Format("yyyy-MM-dd "))

        form.on('submit(demo1)', function (data) {
            window.parent.location.reload();
        });
    });

</script>
</body>
</html>

